package com.xuecheng.content.controller;

import org.springframework.web.bind.annotation.*;
import com.xuecheng.content.service.TeachplanMediaService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dongliang
 */
@Slf4j
@RestController
public class TeachplanMediaController {

    @Autowired
    private TeachplanMediaService  teachplanMediaService;

    //根据mediaid判断媒资信息是否有绑定课程计划数据
    @DeleteMapping("/content/{mediaId}")
    public Boolean isRemoveTeachplanMedia(@PathVariable Long mediaId){

        Boolean flag = teachplanMediaService.RemoveTeachplanMedia(mediaId);

        return flag;
    }
}